<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" s>
<!--<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">-->
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../css/bootstrap.css">
    <title>Title</title>
</head>
<body>
<div class="layui-row">
    <div th:insert="~{header::topbar}"></div>
</div>

<form action="../upload" method="post" enctype="multipart/form-data">
    <input type="file" name="file" accept="image/*">
    <br>
    <input type="submit" value="上传" class="btn btn-success">
</form>
[[${filename}]]
<br>
<img th:src="@{${filename}}" alt="图片">

<img th:src="@{pic/pic1.jpg}" alt="图片">
<img th:src="@{/images/rotPhoto/ojvxtbumdiexujfnqa-timg (1).jfif }" alt="图片">
</body>
</html>